package com.example.administrator.yuejian_2.interservice;



import com.example.administrator.yuejian_2.bean.ClubCourseListBean;
import com.example.administrator.yuejian_2.bean.ClubIntroBean;
import com.example.administrator.yuejian_2.bean.ClubListBean;
import com.example.administrator.yuejian_2.bean.ClubVideoBean;
import com.example.administrator.yuejian_2.bean.CollectBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Query;


public interface ClubService {

    @POST("club/clubpopularlist")
    Call<List<ClubListBean>> clubpopularlist();

    @POST("club/clubrecentlist")
    Call<List<ClubListBean>> clubrecentlist();

    @POST("club/detail")
    Call<ClubIntroBean> clubdetail(@Query("club_id") int club_id);

    @POST("club/courselist")
    Call<List<ClubCourseListBean>> courselist(@Query("club_id") int club_id);

    @POST("club/addcollect")
    Call<CollectBean> addcollect (@Query("user_id") int user_id,
                                  @Query("club_id") int club_id);

    @POST("club/deletecollect")
    Call<CollectBean> deletecollect (@Query("user_id") int user_id,
                                     @Query("club_id") int club_id);

    @POST("club/getstate")
    Call<CollectBean> getstate (@Query("user_id") int user_id,
                                @Query("club_id") int club_id);
    @POST("club/search")
    Call<List<ClubListBean>> search(@Query("club_name") String club_name);

    @POST("club/clubvideolist")
    Call<List<ClubVideoBean>> clubvideolist();


}
